package actionmanager;

import browser.Browser;


public class ActionManager 
{
	private static ActionManager aM = new ActionManager();
	private ActionManager(){};
	
	public static ActionManager getInstance()
	{
		return aM;
	}
	
	//Wersja dla browsera
	public static ActionStub acquireAction(Browser br, String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
	{
		BrowserActionStub action;	
		action = (BrowserActionStub)(Class.forName(className).newInstance());		
		action.configure(br);
		return action;
	}
	
	///Wersja dla menuItem
	
}
